/*
 * IDebianNet.cs
 * 
 * Copyright © 2008 David Paleino <d.paleino@gmail.com>
 * 
 *   This library is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU Lesser General Public
 *   License as published by the Free Software Foundation; either
 *   version 2.1 of the License, or (at your option) any later version.
 *   
 *   This library is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *   Lesser General Public License for more details.
 *   
 *   You should have received a copy of the GNU Lesser General Public
 *   License along with this library; if not, see
 *   <http://www.gnu.org/licenses/>.
 */

using System;
using CookComputing.XmlRpc;

namespace HanskaLabs.Pastebin
{
	/// <summary>
	/// XML-RPC interface for <see cref="T:DebianNet"/>.
	/// </summary>
	[XmlRpcUrl("http://paste.debian.net/server.pl")]
	public interface IDebianNet
	{
		/**
		 * XML-RPC interface
		 */
		[XmlRpcMethod("paste.addPaste")]
		DebianNet.Data addPaste(string pastetext, string name, int expire, string lang);
		
		[XmlRpcMethod("paste.deletePaste")]
		DebianNet.Data deletePaste(string digest);
		
		[XmlRpcMethod("paste.getPaste")]
		DebianNet.Data getPaste(int id);
		
		[XmlRpcMethod("paste.getLanguages")]
		DebianNet.Data getLanguages();
	}
}
